<?php 
//文章
define('MODULE_NAME','Article');

$actions = array('index','show','jb','buy','zan','buyinit','doinit','pingka', 'alipayapp', 'comments');
$action = 'index';

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		$action = 'index';
}

define('ACTION_NAME',$action);

require dirname(__FILE__).'/core/fanwe.php';
$fanwe = &FanweService::instance();
$fanwe->initialize();
require fimport('module/article');

$_FANWE['nav_title'] = lang('common','article');

switch(ACTION_NAME)
{
	case 'index':
		ArticleModule::index();
	break;
	case 'show':
		ArticleModule::show();
	break;
	case 'jb':
		ArticleModule::jb();
	break;
	case 'buy':
		ArticleModule::buy();
	break;
	case 'zan':
		ArticleModule::zan();
	break;
	case 'buyinit':
		ArticleModule::buyinit();
	break;
	case 'doinit':
		ArticleModule::doinit();
	break;
	case 'pingka':
		ArticleModule::pingka();
	break;
	case 'alipayapp':
		ArticleModule::alipayapp();
	break;

	case 'comments':
		ArticleModule::comments();
	break;
}
?>